package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.common.bean.Message;
import com.ms.p2p.provider.SendProvider;
import com.ms.p2p.service.impl.SendServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class SendProviderImpl implements SendProvider {
    @Autowired
    SendServiceImpl sendService;

    public void sendMail(String email, String subject, String content) {
        sendService.sendMail(email,subject,content);
    }

    public Message sendSMS(String mobile, String content, String type, Integer userId) {
        return sendService.sendSMS(mobile,content,type,userId);
    }
}
